package com.hxs.learn;

import com.hxs.learn.env.EnvPropertiesLoader;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import java.util.Properties;

/**
 * @author huxinsheng
 */
@SpringBootApplication
@ComponentScan(value = {"com.hxs"})
public class LearnAdminApplication {
    public static void main(String[] args) {
        Properties properties = EnvPropertiesLoader.loadFile();
        SpringApplication application = new SpringApplication(LearnAdminApplication.class);
        application.setDefaultProperties(properties);
        application.run(args);
    }
}
